package pictionary2;




import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Viper
 */
public class ClienteMSN extends MSN{
    private Socket s;

    public ClienteMSN() throws Exception {
        super("Cliente", new EscuchadorEvento());
        iniciaCliente();
    }
    private void iniciaCliente() throws UnknownHostException, IOException{
        s= new Socket("localhost",9999);
        new Thread(new Escuchador(s, this)).start();
        getEe().setMsn(this);
        getEe().setS(s);
        //new Thread(new Escritor(s)).start();
    }
    public static void main(String[] args) throws Exception {
        ClienteMSN clienteMSN = new ClienteMSN();
    }

}
